AUTOMAKE_OPTIONS = foreign

noinst_LIBRARIES = libbat.a 

libbat_a_SOURCES = \
	$(srcdir)/framework/BAT_Annotation.c \
	$(srcdir)/framework/BAT_Builder.c \
	$(srcdir)/framework/BAT_Factory.c \
	$(srcdir)/framework/BAT_Parser.c \
	$(srcdir)/framework/BAT_Validator.c \
	$(srcdir)/framework/BAT_Writer.c \
	$(srcdir)/util/darray.c \
	$(srcdir)/util/keyed_set.c \
	$(srcdir)/util/partition.c \
	$(srcdir)/util/mem.c \
	$(srcdir)/parsers/BAT_GTF_Parser.c \
	$(srcdir)/writers/BAT_GTF_Writer.c \
	$(srcdir)/validators/BAT_GeneID_Validator.c 

INCLUDES = -I$(top_srcdir)/src/parsers -I$(top_srcdir)/src/validators \
	-I$(top_srcdir)/src/writers -I$(top_srcdir)/src/util \
	-I$(top_srcdir)/src/framework -I$(top_srcdir)/lib -I$(top_builddir)/lib -I.

noinst_HEADERS = $(top_srcdir)/src/framework/BAT_private.h \
	$(srcdir)/framework/BAT_Annotation.h \
	$(srcdir)/framework/BAT_Builder.h \
	$(srcdir)/framework/BAT_Factory.h \
	$(srcdir)/framework/BAT_Parser.h \
	$(srcdir)/framework/BAT_Validator.h \
	$(srcdir)/framework/BAT_Writer.h \
	$(srcdir)/util/darray.h \
	$(srcdir)/util/keyed_set.h \
	$(srcdir)/util/partition.h \
	$(srcdir)/util/mem.h \
	$(srcdir)/parsers/BAT_GTF_Parser.h \
	$(srcdir)/writers/BAT_GTF_Writer.h \
	$(srcdir)/validators/BAT_GeneID_Validator.h 


CLEANFILES = $(srcdir)/gmon.out $(srcdir)/*~ $(srcdir)/*/*~
bin_PROGRAMS = bat
bat_LDADD = $(top_builddir)/src/libbat.a $(top_builddir)/lib/libgnu.la
bat_SOURCES = $(srcdir)/bat.c 

indent:
	@cp $(srcdir)/.indent.pro .; \
	for f in $(libbat_a_SOURCES) $(bat_SOURCES); do \
    $(ECHO) $(ECHO_N) "Indenting $$f... " ; \
		$(INDENT) $$f;  \
    $(ECHO) "done." ; \
	done; \
  $(ECHO) "Cleaning ..." ; \
	$(MAKE) clean ; \
	$(RM) .indent.pro

